// samsting : this file is auto create.

#include "Ecs/2014-05-26/DescribeSecurityGroupsResponse.h"

namespace aliyun { namespace Ecs {

DescribeSecurityGroupsResponse::DescribeSecurityGroupsResponse() {
}

const string& DescribeSecurityGroupsResponse::SecurityGroup::GetSecurityGroupId(void) const {
  return SecurityGroupId_;
}

const string& DescribeSecurityGroupsResponse::SecurityGroup::GetDescription(void) const {
  return Description_;
}

const string& DescribeSecurityGroupsResponse::SecurityGroup::GetSecurityGroupName(void) const {
  return SecurityGroupName_;
}

const string& DescribeSecurityGroupsResponse::SecurityGroup::GetVpcId(void) const {
  return VpcId_;
}

const string& DescribeSecurityGroupsResponse::SecurityGroup::GetCreationTime(void) const {
  return CreationTime_;
}

const std::vector<DescribeSecurityGroupsResponse::SecurityGroup>& DescribeSecurityGroupsResponse::GetSecurityGroups(void) const {
  return SecurityGroups_;
}

const string& DescribeSecurityGroupsResponse::GetRegionId(void) const {
  return RegionId_;
}

int DescribeSecurityGroupsResponse::GetTotalCount(void) const {
  return TotalCount_;
}

int DescribeSecurityGroupsResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeSecurityGroupsResponse::GetPageSize(void) const {
  return PageSize_;
}

const char* DescribeSecurityGroupsResponse::BaseKey(void) {
  return "DescribeSecurityGroupsResponse";
}

void DescribeSecurityGroupsResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int SecurityGroups__length = 0;
  UnmarshallerInt(SecurityGroups__length, response_map, "DescribeSecurityGroupsResponse.SecurityGroups.Length");
  if(SecurityGroups__length >= 0) {
    SecurityGroups_.resize(SecurityGroups__length);
    for(int i1 = 0; i1 < SecurityGroups__length; i1++) {
      UnmarshallerString(SecurityGroups_[i1].SecurityGroupId_, response_map, "DescribeSecurityGroupsResponse.SecurityGroups["+string_ValueOfInt(i1)+"].SecurityGroupId");
      UnmarshallerString(SecurityGroups_[i1].Description_, response_map, "DescribeSecurityGroupsResponse.SecurityGroups["+string_ValueOfInt(i1)+"].Description");
      UnmarshallerString(SecurityGroups_[i1].SecurityGroupName_, response_map, "DescribeSecurityGroupsResponse.SecurityGroups["+string_ValueOfInt(i1)+"].SecurityGroupName");
      UnmarshallerString(SecurityGroups_[i1].VpcId_, response_map, "DescribeSecurityGroupsResponse.SecurityGroups["+string_ValueOfInt(i1)+"].VpcId");
      UnmarshallerString(SecurityGroups_[i1].CreationTime_, response_map, "DescribeSecurityGroupsResponse.SecurityGroups["+string_ValueOfInt(i1)+"].CreationTime");
    } // for(int i1 = 0; i1 < SecurityGroups__length; i1++) {
  } // if(SecurityGroups__length >= 0) {

  UnmarshallerString(RegionId_, response_map, "DescribeSecurityGroupsResponse.RegionId");
  UnmarshallerInt(TotalCount_, response_map, "DescribeSecurityGroupsResponse.TotalCount");
  UnmarshallerInt(PageNumber_, response_map, "DescribeSecurityGroupsResponse.PageNumber");
  UnmarshallerInt(PageSize_, response_map, "DescribeSecurityGroupsResponse.PageSize");
}


} } // namespace aliyun { namespace Ecs {

// end of file 
